package com.yunhe.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.yun.dao.UserDao;
import com.yunhe.bean.ShopUser;
import com.yunhe.util.MySession;

public class PingJias {

	//评价总条数
	public List<ShopUser> PingJ(){
		SqlSession se = MySession.getSession();

		UserDao mapper = se.getMapper(UserDao.class);
		List<ShopUser> shopPing = mapper.ShopPing();

		return shopPing;
	}

	//uname查评价 
	public List<ShopUser> PingJUname(String uname){
		SqlSession se = MySession.getSession();
		UserDao mapper = se.getMapper(UserDao.class);
		List<ShopUser> A = mapper.ShopPingUname(uname);
		return A;
	}
	
	public List<ShopUser> FenPingjia(int currpage){
		SqlSession se = MySession.getSession();
		UserDao mapper = se.getMapper(UserDao.class);
		List<ShopUser> shopPing111 = mapper.ShopPing111(currpage);
		return shopPing111;
	}



}
